/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package monster;

/**
 *
 * @author dkimnach
 */
public class Monster {

    private int health;
    private int prestige;

    // new Monster(health, presige)
    public Monster(int h, int p) {
        health = h;
        prestige = p;
    }

    public Monster(int h, int p, int bonus) {
        health = h;
        prestige = p + bonus;
    }

    // damages monster for 'dmg' returning new health
    public int damage(int dmg) {
        health -= dmg;
        return health;
    }

    // heals monster for 'dmg' returning new health
    public int heal(int dmg) {
        health += dmg;
        return health;
    }

    // monster gains 'p' prestige (either bonus or "Fear")
    public int addPrestige(int p) {
        prestige += p;

        return prestige;
    }

    // monster gains 'p' prestige (
    public int removePrestige(int p) {
        prestige -= p;

        return prestige;
    }

    public int getHealth() { return health; }
    public int getPrestige() { return prestige; }

}
